package com.dayuanit.booksystem.v2.dao;

import com.dayuanit.booksystem.v2.entity.Book;

import java.util.List;

public interface BookDao {

    int add(String bookName, String author, String price, long publisherId);

    Book getBookById(long id);

    Book getBookByName(String bookName);

    int updateBookPriceByName(String bookName, String price);

    List<Book> listBook(long publisherId);

    int count(long publisherId);

    int updateBookPriceById(long bookId, String price);
}
